.flex1{
    position: absolute;
    top: 50%;
    height: 50%;
}